package com.opener.web.push.dao;

import com.opener.web.push.model.PushRecord;
import com.opener.web.push.model.PushRecordSearchArgs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by baboy on 25/07/2017.
 */
@Repository
public interface PushRecordDao {
    int addPushRecord(PushRecord record);
    int updatePushRecord(PushRecord record);
    List<PushRecord> getPushRecords(PushRecordSearchArgs args);
    int getRecordCount(PushRecordSearchArgs args);

    PushRecord getLateRecordByMobile(@Param("mobile") String mobile);
}
